<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:87:"D:\phpStudy\PHPTutorial\WWW\xbs22\fly\public/../application/index\view\index\index.html";i:1542099566;s:72:"D:\phpStudy\PHPTutorial\WWW\xbs22\fly\application\index\view\layout.html";i:1541643768;s:76:"D:\phpStudy\PHPTutorial\WWW\xbs22\fly\application\index\view\public\top.html";i:1541498314;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="keywords" content="fly,layui,前端社区">
	<meta name="description" content="Fly社区是跨设备模块化前端框架layui的官网社区，致力于为web开发提供强劲动力">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title><?php echo !empty($title)?$title :'欢迎'; ?>- <?php echo config('site'); ?></title>
	<link rel="stylesheet" href="//at.alicdn.com/t/font_24081_qs69ykjbea.css">
	<link rel="stylesheet" href="/static/index/layui/css/layui.css">
	<link rel="stylesheet" href="/static/index/layui/css/global.css" charset="utf-8">
	<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
	<script src="/static/index/layui/layui.js"></script>
</head>
<body>
<div class="fly-header layui-bg-black">
	<div class="layui-container">
		<a class="fly-logo" href="/"> <img src="/static/index/layui/images/face/logo.png" alt="layui"/> </a>
		<ul class="layui-nav fly-nav layui-hide-xs">
			<li class="layui-nav-item layui-this"><a href="/"><i class="iconfont icon-jiaoliu"></i>交流</a></li>
			<li class="layui-nav-item"><a href="javascript:;"><i class="iconfont icon-chanpin" style="top: 1px;"></i>专区</a>
				<dl class="layui-nav-child fly-nav-child">
					<dd>
						<a href="/vipclub/list/layuiadmin/">layuiAdmin</a>
					</dd>
					<hr/>
					<dd>
						<a href="/vipclub/list/layim/">LayIM</a>
					</dd>
				</dl>
				<span class="layui-badge-dot" style="margin: -5px 10px 0; right: 0;"></span></li>
			<li class="layui-nav-item"><a href="http://www.layui.com/"><i class="iconfont icon-ui"></i>框架</a></li>
		</ul>
		<?php if(session('user_id')): ?>
		<ul class="layui-nav fly-nav-user">
			<li class="layui-nav-item">
				<a class="fly-nav-avatar" href="<?php echo url('index/UserCenter/index'); ?>" id="LAY_header_avatar">
					<cite class="layui-hide-xs"><?php echo session('nickname'); ?></cite>
					<img src="/static/<?php echo session('face'); ?>"></a>
				<dl class="layui-nav-child">
					<dd>
						<a href="<?php echo url('index/UserCenter/index'); ?>">
							<i class="layui-icon">&#xe612;</i>用户中心</a></dd>
					<dd>
						<a href="">
							<i class="layui-icon">&#xe620;</i>基本设置</a></dd>
					<hr>
					<dd>
						<a href="">
							<i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a>
					</dd>
					<dd>
						<a href="">
							<i class="layui-icon" style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a></dd>
					<hr style="margin: 5px 0;">
					<dd>
						<a href="<?php echo url('index/login/loginout'); ?>" style="text-align: center;">退出</a></dd>
				</dl>
			</li>
		</ul>
		<?php else: ?>
		<ul class="layui-nav fly-nav-user">
			<li class="layui-nav-item"><a class="iconfont icon-touxiang layui-hide-xs" href="<?php echo url('index/Login/index'); ?>"></a></li>
			<li class="layui-nav-item"><a href="<?php echo url('index/Login/index'); ?>">登入</a></li>
			<li class="layui-nav-item"><a href="<?php echo url('index/Reg/index'); ?>">注册</a></li>
			<li class="layui-nav-item layui-hide-xs"><a href="<?php echo url('index/Login/qqLogin'); ?>" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" title="QQ登入" class="iconfont icon-qq"></a></li>
			<li class="layui-nav-item layui-hide-xs"><a href="/app/weibo/" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})" title="微博登入" class="iconfont icon-weibo"></a></li>
		</ul>
		<?php endif; ?>
	</div>
</div>
<div class="fly-panel fly-column">
	<div class="layui-container">
		<ul class="layui-clear">
			<li class="layui-hide-xs  <?php echo input('cate_id') ? '' :'layui-this'; ?>"><a href="/">首页</a></li>
			<?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?>
			<li class="<?php echo input('cate_id')==$row['cate_id'] ?'layui-this':''; ?> "><a href="<?php echo url('index/index/index',['cate_id'=>$row['cate_id']]); ?>"> <?php echo $row['cate_name']; ?> </a></li>
			<?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
		<div class="fly-column-right layui-hide-xs">
			<span class="fly-search LAY_search"><i class="layui-icon"></i></span>
			<a href="<?php echo url('index/Posted/index'); ?>" class="layui-btn">发表新帖</a>
		</div>
		<div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
			<a href="<?php echo url('index/Posted/index'); ?>" class="layui-btn">发表新帖</a>
		</div>
	</div>
</div>
<div class="layui-container">
	<div class="layui-row layui-col-space15">
		<div class="layui-col-md8">
			<div class="fly-panel">
				<?php if(!input("")): ?>
				<div class="fly-panel-title fly-filter">
					<a>置顶</a>
					<a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin"
					   style="color: #FF5722;">去签到</a>
				</div>
				<ul class="fly-list">
					<?php if(is_array($is_top) || $is_top instanceof \think\Collection || $is_top instanceof \think\Paginator): $i = 0; $__LIST__ = $is_top;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?>
					<li><a href="<?php echo url('index/home_page/index',['user_id'=>$row['user_id']]); ?>" class="fly-avatar"> <img
							src="/static/<?php echo $row['face']; ?>" alt="pandaQ"/> </a>
						<h2><a class="layui-badge"><?php echo $row['cate_name']; ?></a> <a
								href="<?php echo url('index/Nom/index',['qid'=>$row['question_id']]); ?>"><?php echo $row['title']; ?></a></h2>
						<div class="fly-list-info">
							<a href="<?php echo url('index/home_page/index',['user_id'=>$row['user_id']]); ?>" link=""> <cite><?php echo $row['nickname']; ?></cite>
							</a>
							<span><?php echo date("Y/m/d H:s:i",$row['create_time']); ?></span>
							<span class="fly-list-kiss layui-hide-xs" title="悬赏飞吻"><i class="iconfont icon-kiss"></i> <?php echo $row['kiss']; ?></span>
							<span class="fly-list-nums"> <i class="iconfont icon-pinglun1" title="回答"></i> <?php echo $row['reply_num']; ?> </span>
						</div>
						<?php if($row['is_good']==1): ?>
						<div class="fly-list-badge">
							<span class="layui-badge layui-bg-red">精贴</span>
						</div>
						<?php else: ?>
						<div class="fly-list-badge layui-hide">
							<span class="layui-badge layui-bg-red">精贴</span>
						</div>
						<?php endif; ?>
					</li>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
				<?php endif; ?>
			</div>
			<div class="fly-panel" style="margin-bottom: 0;">
				<div class="fly-panel-title fly-filter">
					<a href="<?php echo url('index/index/index'); ?>" class="<?php echo input('type')?'' :'layui-this'; ?>">综合</a>
					<span class="fly-mid"></span>
					<a href="<?php echo url('index/index/index',['cate_id'=>input('cate_id') ? input('cate_id') : '','type'=>1]); ?>" class="<?php echo input('type')==1?'layui-this' :''; ?>">未结</a>
					<span class="fly-mid"></span>
					<a href="<?php echo url('index/index/index',['cate_id'=>input('cate_id') ? input('cate_id') : '','type'=>2]); ?>" class="<?php echo input('type')==2?'layui-this' :''; ?>">已结</a>
					<span class="fly-mid"></span>
					<a href="<?php echo url('index/index/index',['cate_id'=>input('cate_id') ? input('cate_id') : '','type'=>3]); ?>" class="<?php echo input('type')==3?'layui-this' :''; ?>">精华</a>
				</div>
				<ul class="fly-list">
					<?php if(is_array($post) || $post instanceof \think\Collection || $post instanceof \think\Paginator): $i = 0; $__LIST__ = $post;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?>
					<li><a href="<?php echo url('index/home_page/index',['user_id'=>$row['user_id']]); ?>" class="fly-avatar"> <img
							src="/static/<?php echo $row['face']; ?>" alt="<?php echo $row['nickname']; ?>"/> </a>
						<h2><a class="layui-badge"><?php echo $row['cate_name']; ?></a> <a
								href="<?php echo url('index/Nom/index',['qid'=>$row['question_id']]); ?>"><?php echo $row['title']; ?></a></h2>
						<div class="fly-list-info">
							<a href="<?php echo url('index/home_page/index',['user_id'=>$row['user_id']]); ?>" link=""> <cite><?php echo $row['nickname']; ?></cite>
							</a>
							<span><?php echo date("Y/m/d H:s:i",$row['create_time']); ?></span>
							<span class="fly-list-kiss layui-hide-xs" title="悬赏飞吻"><i class="iconfont icon-kiss"></i> <?php echo $row['kiss']; ?></span>
							<?php if($row['status']==1): ?>
							<span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>
							<?php else: ?>
							<span class="layui-badge fly-badge-accept layui-hide-xs layui-hide">已结</span>
							<?php endif; ?>
							<span class="fly-list-nums"> <i class="iconfont icon-pinglun1" title="回答"></i> <?php echo $row['reply_num']; ?> </span>
						</div>
						<?php if($row['is_good']==1): ?>
						<div class="fly-list-badge">
							<span class="layui-badge layui-bg-red">精贴</span>
						</div>
						<?php else: ?>
						<div class="fly-list-badge layui-hide">
							<span class="layui-badge layui-bg-red">精贴</span>
						</div>
						<?php endif; ?>
					</li>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
				<div style="text-align: center">
					<div class="laypage-main">
						<?php echo $post->render(); ?>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-col-md4">
			<div class="fly-panel">
				<h3 class="fly-panel-title">温馨通道</h3>
				<div class="layui-row fly-panel-main" style="padding: 15px;">
					<div class="layui-clear fly-list-quick">
						<div class="layui-col-xs6">
							<div>
								<a href="https://fly.layui.com/extend" target="_blank"> 组件平台 </a>
							</div>
						</div>
						<div class="layui-col-xs6">
							<div>
								<a href="http://fly.layui.com/case/2018/" target="_blank"> 年度案例 </a>
							</div>
						</div>
						<div class="layui-col-xs6">
							<div>
								<a href="http://fly.layui.com/jie/30227/" target="_blank"> 精贴集锦 </a>
							</div>
						</div>
						<div class="layui-col-xs6">
							<div>
								<a href="http://fly.layui.com/jie/4281/" target="_blank"> Git 仓库 </a>
							</div>
						</div>
						<div class="layui-col-xs6">
							<div>
								<a href="http://fly.layui.com/jie/13435/" target="_blank"> 关于飞吻 </a>
							</div>
						</div>
						<div class="layui-col-xs6">
							<div>
								<a href="http://www.layui.com/template/fly/" target="_blank"> Fly 社区模板 </a>
							</div>
						</div>
						<a name="signin"> </a>
					</div>
				</div>
			</div>
			<div class="fly-panel fly-signin fly-panel-border">
				<div class="fly-panel-title">
					签到
					<i class="fly-mid"></i>
					<a href="javascript:;" class="fly-link" id="LAY_signinHelp">说明</a>
					<i class="fly-mid"></i>
					<a href="javascript:;" class="fly-link" id="LAY_signinTop">活跃榜<span
							class="layui-badge-dot"></span></a>
					<span class="fly-signin-days">已连续签到<cite><?php echo $sign['sign_num'] ? $sign['sign_num'] : 0; ?></cite>天</span>
				</div>
				<div class="fly-panel-main fly-signin-main">
					<?php if(isset($time)): ?>
					<button class="layui-btn layui-btn-disabled">今日已签到</button>
					<?php else: ?>
					<span id="sign"><button class="layui-btn layui-btn-danger" id="LAY_signin">今日签到</button></span>
					<?php endif; ?>
					<span>可获得<cite>20</cite>飞吻</span></div>
			</div>
			<div class="fly-panel">
				<div class="fly-panel-title">
					钻级赞助商
					<span class="fly-mid"></span>
					<a href="/jie/15697/" class="fly-link fly-joinad    ">我要加入</a>
				</div>
				<div class="fly-panel-main" style="padding: 13px 15px;">
					<a href="https://www.larryms.com/cates/5.html" target="_blank" rel="nofollow" class="fly-zanzhu"
					   style="background-color: #64BF98;" time-limit="2018-11-06 0:0:0"> 60秒极速上手，layui案例排名NO1后台框架 </a>
					<a href="https://yunzhuji.shop/url/?t=s11t&amp;utm_source=fly" target="_blank" rel="nofollow"
					   class="fly-zanzhu" style="background-color: #FF0000;" time-limit="2018-11-05 0:0:0">
						阿里云双11拼团低至99元，瓜分百万红包 </a>
				</div>
			</div>
			<div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
				<h3 class="fly-panel-title">回贴周榜</h3>
				<dl>
					<?php if(is_array($reply) || $reply instanceof \think\Collection || $reply instanceof \think\Paginator): $i = 0; $__LIST__ = $reply;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?>
					<dd>
						<a href="<?php echo url('index/HomePage/index',['user_id'=>$row['user_id']]); ?>"><img
							src="/static/<?php echo $row['face']; ?>"><cite><?php echo $row['nickname']; ?></cite><i><?php echo $row['cn']; ?>次回答</i></a>
					</dd>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</dl>
			</div>
			<dl class="fly-panel fly-list-one">
				<dt class="fly-panel-title">
					本周热议
				</dt>
				<?php if(is_array($week_hot) || $week_hot instanceof \think\Collection || $week_hot instanceof \think\Paginator): $i = 0; $__LIST__ = $week_hot;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?>
				<dd>
					<a href="<?php echo url('index/Nom/index',['qid'=>$row['question_id']]); ?>"><?php echo $row['title']; ?></a>
					<span><i class="iconfont icon-pinglun1"></i> <?php echo $row['reply_num']; ?></span>
				</dd>
				<?php endforeach; endif; else: echo "" ;endif; ?>
			</dl>
			<div class="fly-panel">
				<div class="fly-panel-title">
					官方产品
				</div>
				<div class="fly-panel-main">
					<a href="http://www.layui.com/admin/?from=fly" target="_blank" class="fly-zanzhu"
					   time-limit="2017.09.25-2099.01.01"
					   style="background-color: #20222A; background-image: linear-gradient(to right,#20222A,#3E4251);">layuiAdmin
						- layui 官方后台管理模板</a>
					<a href="http://layim.layui.com/?from=fly" target="_blank" class="fly-zanzhu"
					   time-limit="2017.09.25-2099.01.01"
					   style="background-color: #009688; background-image: linear-gradient(to right,#009688,#5FB878);">LayIM
						- layui 即时通讯旗舰之作</a>
				</div>
			</div>
			<div class="fly-panel" style="padding: 20px 0; text-align: center;">
				<img src="/static/index/layui/images/face/ewm.jpg" style="max-width: 100%;" alt="layui"/>
				<p style="position: relative; color: #666;">微信扫码关注 layui 公众号</p>
			</div>
			<div class="fly-panel fly-link">
				<h3 class="fly-panel-title">友情链接</h3>
				<dl class="fly-panel-main">
					<dd>
						<a href="http://layim.layui.com/" target="_blank">WebIM</a>
					</dd>
					<dd>
					</dd>
					<dd>
						<a href="http://layer.layui.com/" target="_blank">layer</a>
					</dd>
					<dd>
					</dd>
					<dd>
						<a href="http://www.layui.com/laydate/" target="_blank">layDate</a>
					</dd>
					<dd>
					</dd>
					<dd>
						<a href="http://www.bejson.com/" target="_blank">JSON在线工具</a>
					</dd>
					<dd>
					</dd>
					<dd>
						<a href="http://www.smeoa.com/" target="_blank">小微OA</a>
					</dd>
					<dd>
					</dd>
					<dd>
						<a href="http://www.fineui.com/" target="_blank">FineUI开源控件</a>
					</dd>
					<dd>
					</dd>
					<dd>
						<a href="https://www.hellojava.com/" target="_blank">Java菜鸟社区</a>
					</dd>
					<dd>
					</dd>
					<dd>
						<a href="https://juejin.im?from=layui" target="_blank">掘金开发者社区</a>
					</dd>
					<dd>
					</dd>
					<dd>
						<a href="http://www.jianliben.com/" target="_blank">简历模板</a>
					</dd>
					<dd>
					</dd>
					<dd>
						<a href="http://www.uileader.com/" target="_blank">TouchUI移动框架</a>
					</dd>
					<dd>
					</dd>
					<dd>
						<a href="javascript:;"
						   onclick="layer.alert('发送邮件至：xianxin@layui-inc.com&lt;br&gt; 邮件标题为：申请Fly社区友链', {title:'申请友链'});"
						   class="fly-link">申请友链</a>
					</dd>
					<dd>
					</dd>
				</dl>
			</div>
		</div>
	</div>
</div>
<script>
    layui.use('form', function () {
        var form = layui.form;
        $('#sign').click(function () {
            that = $(this)
            $.post("<?php echo url('index/UserCenter/sign'); ?>", {param1: 'value1'}, function (res, textStatus, xhr) {
                if (res.code == 0) {
                    layer.msg(res.msg, {icon: 9,time:1500}, function () {
                    });
                } else {
                    location.reload();
                    layer.msg(res.msg, {icon: 1}, function () {
                    });
                }
            });
        })
    });
</script>

<div class="fly-footer">
	<p><a href="http://fly.layui.com/">Fly社区</a> 2018 &copy; <a href="http://www.layui.com/">layui.com</a></p>
	<p><a href="http://fly.layui.com/jie/3147/" target="_blank">付费计划</a> <a href="/case/2018/"
																			target="_blank">layui案例</a> <a
			href="http://www.layui.com/template/fly/" target="_blank">获取Fly社区模版</a> <a
			href="http://fly.layui.com/jie/2461/" target="_blank">微信公众号</a></p>
	<p class="fly-union"><a href="https://www.upyun.com?from=layui" target="_blank" rel="nofollow" upyun=""><img
			src="https://res.layui.com/static/images/other/upyun.png?t=1"/></a> <span>提供 CDN 赞助</span></p>
</div>
<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function(){
        var element = layui.element;
        //…
    });
</script>
</body>
</html>